package com.design03_behavioral.pattern19_visitor.example01;

import java.time.LocalDate;

/**
 * @ClassName Client
 * @Description TODO
 * @Author 22963
 * @DATE 2023/9/10 11:22
 */
public class Client {

    public static void main(String[] args) {
        //德芙巧克力,生产日期2002-5-1 ,原价 10元
        Candy candy = new Candy("德芙巧克 ", LocalDate.of(2022,5,1),10.0);
        Visitor visitor = new DiscountVisitor(LocalDate.of(2022,10,11));
        visitor.visit(candy);
    }

}
